<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
            <title>appSw</title>
    </h:head>
    <h:body>
        <div align="center">
            <p:panel style="font-size: 36px">
                SISTEMA DE GESTIÓN DE RECURSOS
            </p:panel>
        </div>
        <div>
            <h:form id="form0">
                <div align="center">
                    <p:panel id="panel" header="INGRESO DE USUARIOS" style="margin-bottom:10px;">
                        <p:messages id="messages" />
                        <h:panelGrid columns="3">
                            <h:outputLabel for="user" value="Usuario:" /> 
                            <p:inputText id="user" value="#{loginController.user}" required="true" label="USUARIO">
                                <f:validateLength minimum="4"/>
                            </p:inputText>
                            <p:message for="user" /> 
                            <h:outputLabel for="password" value="Contraseña:" />                             
                            <p:password id="password" value="#{loginController.clave}" required="true" label="CONTRASEÑA">                                 
                                <f:validateLength minimum="4" />                             
                            </p:password>                             
                            <p:message for="password" />                         
                        </h:panelGrid>                     
                    </p:panel>                     
                    <h:panelGrid columns="1">                         
                        <p:commandButton update="@(form)" value="Entrar" actionListener="#{loginController.autenticar()}"/>
                        </h:panelGrid>                 
                </div>             
            </h:form>     
        </div>
    </h:body>
</html>

